//
//  ZXFooterCollectionReusableView.swift
//  loveBee
//
//  Created by zhangxing on 2017/8/13.
//  Copyright © 2017年 zhangXing. All rights reserved.
//

//import UIKit
//import SnapKit
//class ZXFooterCollectionReusableView: UICollectionReusableView {
//    //定义一个上拉刷新视图
//    var upPullRefreshView: UIActivityIndicatorView = {
//        
//        let upPullRefreshView = UIActivityIndicatorView.init(activityIndicatorStyle: UIActivityIndicatorViewStyle.whiteLarge)
//        
//        upPullRefreshView.color = UIColor.red
//        
//        upPullRefreshView.startAnimating()
//        
//        return upPullRefreshView
//        
//    }()
//    
//    override init(frame: CGRect) {
//        super.init(frame: frame)
//        
//        addSubview(upPullRefreshView)
//        
//        //设置约束
//        upPullRefreshView.snp.makeConstraints { (make) in
//            make.center.equalToSuperview()
//        }
//        
//    }
//    
//    required init?(coder aDecoder: NSCoder) {
//        fatalError("init(coder:) has not been implemented")
//    }
//        
//}





import UIKit

class ZXFooterCollectionReusableView: UICollectionReusableView {
    
    var upPullRefreshView: UIActivityIndicatorView = {
        let upPullRefreshView = UIActivityIndicatorView.init(activityIndicatorStyle: UIActivityIndicatorViewStyle.whiteLarge)
        
        upPullRefreshView.color = UIColor.red
        
        upPullRefreshView.startAnimating()
        
        return upPullRefreshView
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        
        addSubview(upPullRefreshView)
        
        /// 设置约束
        upPullRefreshView.snp.makeConstraints { (make) in
            make.center.equalToSuperview()
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}

